Copyright: Copyright © 1995 Dean Marrs
Citation: Copyright © 1995 Dean Marrs


EVENTS

Same as Tlabel


HourTxt

Enter the Heading you want displayed before the hour in the timer mode. This can not be used for the clock. The default is Hour.


Methods

Same as Tlabel Plus...

New Methods:

StartTime

StopTime

ResetTime


MinTxt

Enter the Heading you want displayed before the minutes in the timer mode. This can not be used for the clock. The default is Min.


Properties

Same as Tlabel Plus...

New properties

HourTxt

MinTxt

SecTxt

TimerStyle

WatchType


ResetTime

The ResetTime method is used to reset the time to 00:00:00;


SecTxt

Enter the Heading you want displayed before the seconds in the timer mode. This can not be used for the clock. The default is Sec.


StartTime

The StartTime method is used to start the timer.

Example:   Stopwatch1.starttime;


StopTime

The StopTime method is used to stop the timer.

Example:   Stopwatch1.stoptime;


TStopwatch

TStopwatch Component

Properties          Methods            Events

Description

The TStopwatch Component is a visual component descended from TCustomlabel. It is either a Timer or a Clock. The Timer is useful for programs that need an elapsed time, such as a help desk which bills per minute or hour. The Clock  displays the current time in HH:MM:SS AM/PM format.

The WatchType property determines the function of TStopwatch. Choose wtTimer for the Timer (This is the default). Choose wtClock for the current time. There is no functionality to the clock other than the current time.

You can customize the text before the Hour, Minutes and Seconds by changing the HourTxt, MinTxt and SecTxt properties.

There is a StartTime, a StopTime, and a ResetTime method. These methods function as you would expect.

In addition to these properties and methods, this component also has the properties and methods that apply to the Tlabel component

Copyright (C) 1995 Dean Marrs     All Rights Reserved.


TimerStyle

The TimerStyle property can be either tsText or tsNoText. If tsText option is selected then the headings for the timer will be displayed, such as: Hour 3 Min 2 Sec 3. If tsNoText is selected the display will look like 03:02:03.


WatchType

The Watchtype property is either wtClock or wtTimer.